package org.itboys.product.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

import java.util.Date;

/**
 * Created by DELL on 2016/7/5.
 * 常用旅客信息
 */
@Entity(value = "CommonTouristInfo", noClassnameStored = true)
public class CommonTouristInfo extends BaseLongIdEntity {

    @Indexed
    private Long memberId;//用户Id
    private String name;//名称
    private String mobile;//手机
    private Integer idType;//证件类型  1护照 2身份证 3驾驶证
    private String idNumber;//身份证号
    private Integer type;//旅客类型 1成人 2儿童
    private Integer isDeleted = 0;//0表示未删除，1表示已删除，2表示为默认旅客
    private Date createTime;//创建时间
    private Date updateTime;//修改时间

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

	public Integer getIdType() {
		return idType;
	}

	public void setIdType(Integer idType) {
		this.idType = idType;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
